package ldh.im.dto.base;

public class ErrorResp extends Resp {

    private int errorCode;
    private String errorMsg;                   // 失败原因

    public ErrorResp() {
        super();
        this.setWeight(60);
    }

    public ErrorResp(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        setErrorMsg(errorMsg);
        this.setWeight(60);
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
